package com.example.demo.service;

import com.example.demo.dao.UserMapper;
import com.example.demo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: UserServiceImpl
 * @Description: UserServiceImpl
 * @Author: zzz
 * @Date: 2020-04-04 21:03
 */

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;


    @Override
    public User GetUser(User user) {

        return  userMapper.GetUser(user.getName());
    }
}
